Check pointer (bug #253)
authorMark Spencer <markster@digium.com>
Sat, 27 Sep 2003 02:27:15 +0000 (02:27 +0000)
committerMark Spencer <markster@digium.com>
Sat, 27 Sep 2003 02:27:15 +0000 (02:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1564 65c4cc65-6c06-0410-ace0-fbb531ad65f3

editline/el.c

index 567d39d..514316f 100755 (executable)
@@ -121,7 +121,8 @@ el_end(EditLine *el)
        prompt_end(el);
        sig_end(el);
 
-       el_free((ptr_t) el->el_prog);
+       if (el->el_prog)
+               el_free((ptr_t) el->el_prog);
        el_free((ptr_t) el);
 }